# -*- coding: utf-8 -*-

import requests

from reaper import Reaper


class RequestsSession(Reaper):

    def new(self):
        session = requests.Session()
        if isinstance(self._cfg, dict) and self._cfg:
            for k, v in self._cfg.items():
                session.k = v

        return session
